﻿/*大姐大盒子，已更改*/
var status = 0;
var icon2 = "#fUI/UIToolTip.img/Item/Equip/Star/Star#";
var z = "#fUI/UIWindow2.img/QuestAlarm/BtQ/normal/0#";
var IconA = "#fEffect/CharacterEff/1112903/0/0#"; //红心
var IconB = "#fEffect/CharacterEff/1112904/0/0#"; //彩心
var IconC = "#fEffect/CharacterEff/1112924/0/0#"; //黄星
var IconD = "#fEffect/CharacterEff/1112925/0/0#"; //蓝星
var IconE = "#fEffect/CharacterEff/1112926/0/0#"; //红星
function start() {
    status = -1;
    action(1, 0, 0);
}

function action(mode, type, selection) {
    if (status == 0 && mode == 0) {
        im.dispose();
        return;
    }
    if (mode == 1) {
        status++;
    } else {
        status--;
    }
    if (status == 0) {
        var selStr = "			  冒险岛 - 游戏助手\r\n\r\n";
        selStr += " " + IconC + "" + IconD + "" + IconE + "" + IconC + "" + IconD + "" + IconE + "" + IconC + "" + IconD + "" + IconE + "" + IconC + "" + IconD + "" + IconE + "" + IconC + "" + IconD + "" + IconE + "" + IconC + "" + IconD + "" + IconE + "\r\n\r\n";
        selStr += "#r#L0#" + z + " 打开拍卖#l  #L1#" + z + " 随身商店#l  #L2#" + z + " 爆率查询#l\r\n";
        selStr += "#r#L3#" + z + " 技能管理#l  #L4#" + z + " 装备还原#l  #L5#" + z + " 清除道具#l\r\n";
        //selStr += "#r#L6#"+z+" 领取声望#l\r\n";
        //selStr += "\r\n\r\n#fEffect/ItemEff/1112811/0/0##fEffect/ItemEff/1112811/0/0##n#k#fEffect/ItemEff/1112811/0/0##n#k#fEffect/ItemEff/1112811/0/0##n#k#fEffect/ItemEff/1112811/0/0##n#k#fEffect/ItemEff/1112811/0/0##n#k#fEffect/ItemEff/1112811/0/0##n#k#fEffect/ItemEff/1112811/0/0##n#k#fEffect/ItemEff/1112811/0/0##n#k#fEffect/ItemEff/1112811/0/0##n#k#fEffect/ItemEff/1112811/0/0##n#k#fEffect/ItemEff/1112811/0/0##n#k#fEffect/ItemEff/1112811/0/0##n#k#fEffect/ItemEff/1112811/0/0##n#k#fEffect/ItemEff/1112811/0/0##n#k#fEffect/ItemEff/1112811/0/0##n#k#fEffect/ItemEff/1112811/0/0##n#k#fEffect/ItemEff/1112811/0/0##n#k#fEffect/ItemEff/1112811/0/0##n#k";
        im.sendSimple(selStr);
    } else if (status == 1) {
        switch (selection) {
            case 0:
                im.dispose();
                im.openNpc(9010000);
                break;
            case 1:
                im.dispose();
                im.openNpc(9000021);
                break;
            case 2:
                im.dispose();
                im.openNpc(9310382, 5);
                break;
            case 3:
                im.sendSimple("该功能已关闭.");
                im.dispose();
                // im.openNpc(2084001, 1);
                break;
            case 4:
                im.sendSimple("该功能已关闭.");
                im.dispose();
                // im.openNpc(9000018,100);
                break;
            case 5:
                im.dispose();
                im.openNpc(2084001, 99999); //删除道具
                break;
            case 10:
                im.dispose();
                im.openNpc(2084001, 1); //技能管理
                break;
                break;
            case 6:
                if (im.getHonorExp() > 10000) {
                    im.sendOk("#b您当前声望值为:#r" + im.getHonorExp() + "#l#b\r\n只有低于10000的情况下我才会给您发放噢#l");
                } else {
                    im.gainHonorExp(5000);
                    im.sendOk("#b5000声望值已经给您发送了\r\n" + IconC + "" + IconD + "" + IconE + "" + IconC + "" + IconD + "" + IconE + "" + IconC + "" + IconD + "" + IconE + "" + IconC + "" + IconD + "" + IconE + "" + IconC + "" + IconD + "" + IconE + "" + IconC + "" + IconD + "" + IconE + "\r\n点击我一次可以给您2000万冒险币噢.\r\n" + IconC + "" + IconD + "" + IconE + "" + IconC + "" + IconD + "" + IconE + "" + IconC + "" + IconD + "" + IconE + "" + IconC + "" + IconD + "" + IconE + "" + IconC + "" + IconD + "" + IconE + "" + IconC + "" + IconD + "" + IconE + "\r\n您当前的声望值为:#r" + im.getHonorExp() + "#l#b点#l");
                }
                im.dispose();
                break;
        }
    }
}